package com.web;

import com.service.WenZhangService_db;
import com.util.ResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wen")
public class WenZhangController_db {
    @Autowired
    private WenZhangService_db wenZhangServiceDb;

    @RequestMapping("/add")
    public ResultEntity add(Integer tId,Integer wId){
        return ResultEntity.ok(wenZhangServiceDb.add(tId, wId));
    }
}
